package configs

type Mysql struct {
	Name                      string `yaml:"name"`
	Host                      string `yaml:"host"`
	Port                      int    `yaml:"port"`
	User                      string `yaml:"user"`
	PassWord                  string `yaml:"pass"`
	Charset                   string `yaml:"charset"`
	Prefix                    string `yaml:"prefix"`
	MaxOpenConn               int    `yaml:"max_open_conn"`
	MaxIdleConn               int    `yaml:"max_idle_conn"`
	ConnMaxLifeTime           int    `yaml:"conn_max_life_time"`
	ConnMaxIdleTime           int    `yaml:"conn_max_idle_time"`
	IgnoreRecordNotFoundError bool   `yaml:"ignore_record_not_found_error"`
}

type Redis struct {
	Host         string `yaml:"host"`
	Port         int    `yaml:"port"`
	Database     int    `yaml:"database"`
	Password     string `yaml:"password"`
	MaxRetries   int    `yaml:"max_retries"`
	PoolSize     int    `yaml:"pool_size"`
	MinIdleConns int    `yaml:"min_idle_conns"`
}

type Timing struct {
	Open bool `yaml:"open"`
}

type AsyQueue struct {
	Open bool `yaml:"open"`
}
